﻿using Ortodoctor.modelo;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Ortodoctor.Funcionario
{
    public partial class Erros : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        [WebMethod]
        public static string Corrigir()
        {
            if (HttpContext.Current.Session["ID_CLINICA"] == null)
            {
                return "0";
            }else {
                modeloErros me = new modeloErros();
                return (me.Corrigir());
            }
        }

        [WebMethod]
        public static string Verificar()
        {
            if (HttpContext.Current.Session["ID_CLINICA"] == null)
            {
                return "0";
            }else {
                modeloErros me = new modeloErros();
                string num_erros = me.Verificar();
                return num_erros;
            }
        }
    }
}